【文件属性】:
文件名称:node-nagios-status-parser:解析nagios status.dat文件格式
文件大小:15KB
文件格式:ZIP
更新时间:2021-06-03 03:04:28
JavaScript
nagios 状态解析器
解析nagios status.dat文件格式
例子
var fs = require ( 'fs' ) ;
var parse = require ( 'nagios-status-parser' ) ;
var status = fs . readFileSync ( '/var/spool/nagios/status.dat' , 'utf8' ) ;
console . log ( parse ( status ) ) ;
产量
{
" info " : [
{
" created " : 1432848176 ,
" version " : " 3.5.1 " ,
" last_update_check " : 1432785937 ,
" update_available " : 1 ,
【文件预览】:
node-nagios-status-parser-master
----bin()
--------nagios-status-parser.js(199B)
----package.json(794B)
----tests()
--------simple.js(554B)
----.gitignore(13B)
----README.md(2KB)
----status.dat(218KB)
----nagios-status-parser.js(893B)